/*
 * Copyright (c) 2022, tyustli
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-04-10     tyustli      first implementation
 */

#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

/* 输入三个整数x,y,z，请把这三个数由小到大输出 */

int main(int argc, char *argv[])
{
    int x, y, z, t;
    printf("三个整数：\r\n");
    scanf("%d %d %d", &x, &y, &z);
    printf("输入的三个整数为：%d %d %d\r\n", x, y, z);

    if (x > y)
    {
        t = x; x = y; y = t;
    }

    if (x > z)
    {
        t = x; x = z; z = t;
    }

    if (y > z)
    {
        t = y; y = z; z = t;
    }

    printf("从小到大三个整数为：%d %d %d\r\n", x, y, z);

    return 0;
}

/************************ end of time ************************/
